// **************************************************************
// Com ++ Framework by the C++ World
// Please report defects: mailto:compp@cplusplusworld.com
// Please visit: http://www.cplusplusworld.com/socketlibrary.html
// **************************************************************

#include <iostream>
#include <string>
#include <cstdlib>
#include <stdio.h>

#include "SysPlusPlus/SysPlusPlus"

int main (int argc, char *argv [] ) {


  std::string s="", s1="" ;
  
  for ( int i = 0 ; i < 256; ++ i )
    s += (unsigned char ) i ;
  
  s1 = s;

  std::cout << "\n";

  syspp::Tools::Enc ( s );
  syspp::Tools::Dec ( s );

  if ( s != s1 ) 
    std::cout << "failed\n";
  else
    std::cout << "passed\n";

  return 0;
}

